﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FastDATA;
namespace CursoUNICEUB
{
    public partial class AtivarBlog : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            int id = Convert.ToInt32(Request.QueryString["id"]);

            using(DCCursoDataContext banco = new DCCursoDataContext()){
                var query = from b in banco.DEBlogs
                            where b.Codigo == id
                            select b;
                DEBlog obj = query.Single();


                lblNome.Text = obj.Nome;
                lblUrl.Text = obj.URL;
            
            }

        }
    }
}